TileView for WPF and Silverlight Task-Based Help > Adding Items to C1TileView |
In this topic we add C1TileViewItem objects to the C1TileView control. This topic assumes that you have an empty C1TileView control in your application, as in Adding C1TileView to the Application.
Edit the <c1:C1TileView x:Name="C1TileView1" /> element to add several C1TileViewItems. The XAML appears similar to the following:
XAML |
Copy Code
|
---|---|
<c1:C1TileView Name="C1TileView1"> <c1:C1TileViewItem Background="Red" Header="Red"></c1:C1TileViewItem> <c1:C1TileViewItem Background="Orange" Header="Orange"></c1:C1TileViewItem> <c1:C1TileViewItem Background="Yellow" Header="Yellow"></c1:C1TileViewItem> <c1:C1TileViewItem Background="Green" Header="Green"></c1:C1TileViewItem> <c1:C1TileViewItem Background="Blue" Header="Blue"></c1:C1TileViewItem> <c1:C1TileViewItem Background="Purple" Header="Purple"></c1:C1TileViewItem> </c1:C1TileView> |
You've successfully added six C1TileViewItem objects to the C1TileView control.